import request from '@/utils/request'

// 查询还款明细列表
export function listRepay(query) {
  return request({
    url: '/fs/repay/list',
    method: 'get',
    params: query
  })
}

// 查询还款明细详细
export function getRepay(id) {
  return request({
    url: '/fs/repay/' + id,
    method: 'get'
  })
}

// 新增还款明细
export function addRepay(data) {
  return request({
    url: '/fs/repay',
    method: 'post',
    data: data
  })
}

// 修改还款明细
export function updateRepay(data) {
  return request({
    url: '/fs/repay',
    method: 'put',
    data: data
  })
}

// 删除还款明细
export function delRepay(id) {
  return request({
    url: '/fs/repay/' + id,
    method: 'delete'
  })
}
